package org.hackystat.app.projectstatus.view;

import javax.servlet.http.HttpServletRequest;

import org.hackystat.core.kernel.command.Command;
import org.hackystat.core.kernel.mvc.Page;
import org.hackystat.core.kernel.mvc.RequestHook;
import org.hackystat.core.kernel.user.User;

/**
 * Selector class that handles the data collection from
 * the Alert Manager UI.
 * 
 * @author Josh Stupplebeen
 *
 */
public class AlertEmailManagerSelector implements RequestHook {
  
  private String emailString = "";

  /**
   * Run before a page containing this selector is displayed to the user, and
   * sets the ProjectStatus options and provides the current setting of this user's
   * ProjectStatus alert.
   *
   * @param user The user associated with this request.
   * @param page The page to be displayed.
   * @param request The request associated with this display.
   */
  public void beforePageDisplayHook(User user, Page page, HttpServletRequest request) {
  }
  

  /**
   * Runs after a command is received containing AlertManager.jsp.
   *
   * @param user The user associated with this request.
   * @param command The command submitted by this user.
   * @param request The request associated with this command.
   */
  public void afterCommandReceivedHook(User user, Command command, HttpServletRequest request) {
    //AlertEmailManager.setProjectAlertEmails(user, request.getParameter("emails"));
    //AlertEmailManager.setProjectAlertEnabled(user, request.getParameter("alert_enabled"));
  }


}
